Shopglut\showcase\Swatches\dataManage D

Total Complexity 145
Dependencies 0
Dependents 1
Total lines 1,185
Lines of code 846
Logical lines of code 392
Comment lines 253
Methods 37
Properties 2

Methods 37

Method Rating Maintainability Complexity Lines of code
product_attribute_shape()
B
30 12 164
get_term_template()
A
39 10 76
term_meta_fields_markup()
A
47 10 36
attribute_wrapper()
A
44 8 45
product_settings_wrapper()
A
45 8 45
add_preview_markup()
S
52 7 22
save_swatches()
S
52 7 22
save_product_attribute_shape()
S
56 6 18
reset_swatches()
S
56 5 16
update_swatches()
S
57 5 15
term_meta_enqueue_scripts()
S
52 4 26
attribute_type_wrapper()
S
56 4 20
add_swatch_types()
S
56 4 18
add_attribute_column()
S
57 4 17
check_attr_variation()
S
62 4 13
product_attribute_template()
S
48 2 42
product_enqueue_scripts()
S
52 3 26
__construct()
S
51 3 23
term_meta_fields()
S
55 3 20
get_attr_type_by_name()
S
63 4 9
save_term_fields()
S
62 3 12
edit_form_fields()
S
58 2 18
panel_wrapper()
S
59 2 17
swatches_settings()
S
60 2 16
product_attribute_scripts()
S
57 2 16
taxonomy_section()
S
67 3 8
return_swatches_template()
S
63 3 10
add_form_fields()
S
60 2 14
get_instance()
S
70 2 7
update_reset_swatches_template()
S
64 2 10
sanitize_recursively()
S
67 2 8
remove_blank_array()
S
68 2 8
type_of_attributes()
S
68 1 7
swatches_panel()
S
74 1 5
swatches_tab()
S
65 1 9
clean_up_previous_swatches_data()
S
71 1 5
is_visible()
S
80 1 3